﻿//Write a method GetMax() with two parameters that returns the bigger of two integers. Write a program that reads 3 integers from the console and prints the biggest of them using the method GetMax().


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GetMaxMethod
{
    class GetMaxMethod
    {
        static void Main()
        {
            int one = int.Parse(Console.ReadLine());
            int two = int.Parse(Console.ReadLine());
            int three = int.Parse(Console.ReadLine());
            int biggest = GetMax(one, two);
            biggest = GetMax(biggest, three);
            Console.WriteLine("The biggest number is {0}", biggest);

        }
        static int GetMax(int first, int second)
        {
            int biggest = first;
            if (second > first)
            {
                biggest = second;
            }
            return biggest;
        }
    }
}
